package com.chushouya.manager.dto.api.doorservice;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 上门服务检查响应DTO
 * 
 * @author chushouya
 */
@ApiModel("上门服务检查响应")
@Data
public class DoorServiceCheckResponse {

    @ApiModelProperty(value = "是否可以上门", example = "true")
    private Boolean available;

    @ApiModelProperty(value = "提示信息", example = "该区域支持上门服务")
    private String message;

    public DoorServiceCheckResponse() {
    }

    public DoorServiceCheckResponse(Boolean available, String message) {
        this.available = available;
        this.message = message;
    }

    public static DoorServiceCheckResponse success(String message) {
        return new DoorServiceCheckResponse(true, message);
    }

    public static DoorServiceCheckResponse fail(String message) {
        return new DoorServiceCheckResponse(false, message);
    }
}
